<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>旅游商店</title>
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/table.css}">
</head>
<body>
<div class="box">
    <div class="title">欢迎用户<span class="user" th:text="${name}"></span>来到商店</div>
    <div class="shop-box">
        <form action="/login" method="post">
            <table border="1">
                <tr>
                    <td>商品号</td>
                    <td>起点</td>
                    <td>终点</td>
                    <td>价钱</td>
                    <td>是否购买</td>
                </tr>

            </table>
            <table  th:each="shop_list:${shop_list}" border="1">
                <tr>
                    <td th:text="${shop_list.aucId}"></td>
                    <td th:text="${shop_list.gostart}"></td>
                    <td th:text="${shop_list.goend}"></td>
                    <td th:text="${shop_list.aucPrice}"></td>
                    <td><a th:href="@{/order_ect(aucId=${shop_list.aucId},user=${name})}">购买</a></td>
                </tr>
            </table>
        </form>
        <a th:href="@{/user_order(user=${name})}">用户详情</a>
    </div>

</div>

</body>
</html>